package one.saunfa.tree;

public class Node {
    private int elm;
    private Node leftNode;
    private Node rightNode;

    public Node(int elm) {
        this.elm = elm;
        this.leftNode=null;
        this.rightNode=null;
    }

    public int getElm() {
        return elm;
    }

    public void setElm(int elm) {
        this.elm = elm;
    }

    public Node getLeftNode() {
        return leftNode;
    }

    public void setLeftNode(Node leftNode) {
        this.leftNode = leftNode;
    }

    public Node getRightNode() {
        return rightNode;
    }

    public void setRightNode(Node rightNode) {
        this.rightNode = rightNode;
    }
}
